<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!doctype html>
<html>
<%
	String lat = request.getParameter("lat");
	String lng = request.getParameter("lng");
	String carcenter_name = request.getParameter("carcenter_name");
%>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"> </script>
<script>
window.onload = function() {
	var lat = '<%=lat%>';
	var lng = '<%=lng%>';
	var carcenter_name = '<%=carcenter_name%>';
	var map_div= document.getElementById("map_div");
	var latlng = new google.maps.LatLng(lat , lng);
	
	var gmap = new google.maps.Map(
		map_div , {
			zoom:16,
			center:latlng,
			mapTypeId: google.maps.MapTypeId.ROADMAP
		}		
	);
	
	var marker = new google.maps.Marker({
		position: latlng,
		map: gmap,
		title: carcenter_name
	});
}
</script>

<body>
<div id="map_div" style="width: 300px; height: 400px;"></div>

</body>
</html>